package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/19
*/
@Data
@TableName(value = "project_experience")
public class ProjectExperience {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField(value = "userinfo_id")
    private Integer userinfoId;

    @TableField(value = "userinfo",exist = false)
    private Userinfo userinfo;

    /**
     * 项目名称
     */
    @TableField(value = "title")
    private String title;
//    项目职责
    @TableField(value = "duty_description")
    private String dutyDescription;

    /**
     * 项目内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 职位（个人/成员/组长）
     */
    @TableField(value = "duty")
    private String duty;

    /**
     * 假删
     */
    @TableField(value = "enable")
    private Boolean enable;

    public static final String COL_USERINFO_ID = "userinfo_id";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_END_TIME = "end_time";

    public static final String COL_DUTY = "duty";

    public static final String COL_ENABLE = "enable";
}